<%@page import="com.netistate.pojo.Project"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div class="minWin">
	<table id="" width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="bg_color_common" style="font-size: 12">
		<tr>
			<td align="right" title="Demo机型号">Demo机型号:</td>
			<td>
			    <input type="hidden" id="editId" name="id" value="${sessionScope.editDemo.id }"/>
				<input id="model" disabled name="model" value="${sessionScope.editDemo.model }" style="width:250px;" />
			</td>
		</tr>
		<tr>
			<td align="right" title="序列号">序列号:</td>
			<td><input id="seqNo" disabled name="seqNo" value="${sessionScope.editDemo.seqNo }" style="width:250px;"/></td>
		</tr>
		<tr>
			<td align="right" title="License截止日期">License截止日期:</td>
		    	<td>
				<%
			       Date date = new Date();
			       SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy-MM-dd");
				   String endString = sdFormat.format(date);
				%>
				<input id="editLicense" name="starttime" type="text" style="width:80px" onclick="MyCalendar.SetDate(this)" value="${sessionScope.editDemo.license }" readonly="readonly" />
				</td>
		</tr>
		<tr>
			<td align="right" title="节点数">节点数:</td>
			<td><input id="editNodes" name="nodes" value="${sessionScope.editDemo.nodes}" /></td>
		</tr>
		<tr>
			<td align="right" title="模块">模块:</td>
			<td>
				<select id="editModule" name="editModule" onchange="changeEditModule()">
					<c:if test="${'所有模块' == sessionScope.editDemo.module}">
						<option value="默认模块" selected="selected">默认模块</option>
						<option value="定制模块" ">定制模块</option>
					</c:if>
					<c:if test="${!('所有模块' == sessionScope.editDemo.module)}">
						<option value="定制模块" selected="selected">定制模块</option>
						<option value="默认模块"">默认模块</option>
					</c:if>		
				</select>
					<c:if test="${!('所有模块' == sessionScope.editDemo.module)}">
						<input type="text" id="showEditModule" value="${sessionScope.editDemo.module }" style="width:250px;" />
					</c:if>
					<input type="text" id="showEditModule" value="${sessionScope.editDemo.module }" style="display:none;width:250px;" />
					<input type="text" id="eidtDefaultModule" value="所有模块" style="display:none;width:250px;" />
			</td>
		</tr>
		<tr>
			<td align="right" title="Demo机硬件配置">Demo机硬件配置:</td>
			<td><textarea rows="6" cols="35" name="productConfig" id="editProductConfig" >${sessionScope.editDemo.productConfig}</textarea></td>
		</tr>		
		
		<tr>
			<td align="right" title="备注">描述:</td>
			<td><textarea rows="6" cols="35" name="note" id="editNote">${sessionScope.editDemo.note}</textarea></td>
		</tr>
		<%-- <tr>
			<td align="right" title="模块">模块:</td>
			<td>
				<input id="editModule" name="module" value="${sessionScope.editDemo.module}" style="width:250px;"/>
			</td>
		</tr> --%>
		<%-- <tr>
			<td align="right" title="硬件提供商">Demo机硬件提供商:</td>
			<td>
				<select id="hardwareSource" name="hardwareSource">
					<c:if test="${'1U_3710' == sessionScope.editDemo.hardwareSource}">
						<option value="1U_3710" selected="selected">1U_3710</option>
						<option value="1U_5400">1U_5400</option>
						<option value="2U_6840">2U_6840</option>
						<option value="2U_CAR3002C">2U_CAR3002C</option>
						<option value="宝德单路服务器">宝德单路服务器</option>
					</c:if>
					<c:if test="${'1U_5400' == sessionScope.editDemo.hardwareSource}">
						<option value="1U_3710" >1U_3710</option>
						<option value="1U_5400" selected="selected">1U_5400</option>
						<option value="2U_6840">2U_6840</option>
						<option value="2U_CAR3002C">2U_CAR3002C</option>
						<option value="宝德单路服务器">宝德单路服务器</option>
					</c:if>
					<c:if test="${'2U_6840' == sessionScope.editDemo.hardwareSource}">
						<option value="1U_3710" >1U_3710</option>
						<option value="1U_5400" >1U_5400</option>
						<option value="2U_6840" selected="selected">2U_6840</option>
						<option value="2U_CAR3002C">2U_CAR3002C</option>
						<option value="宝德单路服务器">宝德单路服务器</option>
					</c:if>
					<c:if test="${'2U_CAR3002C' == sessionScope.editDemo.hardwareSource}">
						<option value="1U_3710" >1U_3710</option>
						<option value="1U_5400" >1U_5400</option>
						<option value="2U_6840" >2U_6840</option>
						<option value="2U_CAR3002C" selected="selected">2U_CAR3002C</option>
						<option value="宝德单路服务器">宝德单路服务器</option>
					</c:if>
					<c:if test="${'宝德单路服务器' == sessionScope.editDemo.hardwareSource}">
						<option value="1U_3710" >1U_3710</option>
						<option value="1U_5400" >1U_5400</option>
						<option value="2U_6840" >2U_6840</option>
						<option value="2U_CAR3002C" >2U_CAR3002C</option>
						<option value="宝德单路服务器" selected="selected">宝德单路服务器</option>
					</c:if>
				</select>
			</td>
		</tr> --%>	
		
		<%-- <tr>
			<td align="right" title="Demo机所在处">Demo机所在处:</td>
			<td>
				<c:if test="${1 == sessionScope.editDemo.state }">
					<!-- <input id="demoAddress" name="demoAddress" value="在公司" style="width:250px;"/> -->
					<span id="demoAddress" name="demoAddress" value="在公司">在公司</span>
				</c:if>
				<c:if test="${0 == sessionScope.editDemo.state }">
					<input id="demoAddress" name="demoAddress" value="${sessionScope.editDemo.demoAddress}" style="width:250px;"/>
				</c:if>
			</td>
		</tr> --%>
		

	</table>
</div>